package com.qhm123.spark.restlet;

import java.util.HashMap;
import java.util.Map;

import org.restlet.data.MediaType;
import org.restlet.representation.Representation;
import org.restlet.resource.Get;

public class DefaultResouce extends BaseServerResource {

	@Get
	public Representation toText() {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("text", "hello freemaker!");

		return toRepresentation(map, "index.html", MediaType.TEXT_HTML);
	}
}
